﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using ETRoboConTrakingSystem;

namespace ETRobocon.RaceTraking.GamePresentation
{
    /// <summary>
    /// UserControlTeamInfo.xaml の相互作用ロジック
    /// </summary>
    public partial class UserControlTeamInfo : UserControl
    {
        public UserControlTeamInfo()
        {
            InitializeComponent();
        }

        public RunnerInfo CurrentRunner
        {
            get
            {
                RunnerInfo runnerInfo = this.Resources["CurrentRunner"] as RunnerInfo;
                return runnerInfo;
            }
        }

        public RunnerTimerCounterUserControl TimeCounter
        {
            get
            {
                return this.TimerCounter;
            }
        }

        public void ResetTimerCounter()
        {
            this.TimerCounterPanel.Children.Remove(this.TimerCounter);
            this.TimerCounter = new RunnerTimerCounterUserControl();
            this.TimerCounterPanel.Children.Add(this.TimerCounter);
        }
    }
}
